package com.easy.yours.biz.model;

import com.easy.system.model.BaseBean;
import org.hibernate.annotations.ForeignKey;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: sunguangzhu
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "demo", catalog = "commonproject")
public class Demo extends BaseBean implements java.io.Serializable {

    /**
     * 自定义属性一
     */
    private java.lang.String property1;

    /**
     * 自定义属性二
     */
    private java.lang.String property2;

    /**
     * default constructor
     */
    public Demo() {
    }

    /**
     * full constructor
     *
     * @param property1
     * @param property2
     */
    public Demo(java.lang.String property1, java.lang.String property2) {
        this.property1 = property1;
        this.property2 = property2;
    }

    /**
     * getter
     */
    @Column
    public java.lang.String getProperty1() {
        return this.property1;
    }

    /**
     * setter
     *
     * @param property1
     */
    public void setProperty1(java.lang.String property1) {
        this.property1 = property1;
    }

    /**
     * getter
     */
    @Column
    public java.lang.String getProperty2() {
        return this.property2;
    }

    /**
     * setter
     *
     * @param property2
     */
    public void setProperty2(java.lang.String property2) {
        this.property2 = property2;
    }

}
